package com.swl.juc.lock;

public class DCL {
    private DCL() {
    }

    private static volatile DCL dcl;

    private static DCL getDcl() {
        if (dcl == null) {
            synchronized (DCL.class) {
                if (dcl == null) {
                    dcl = new DCL();
                }
            }
        }
        return dcl;
    }

}
